<%--
  Created by IntelliJ IDEA.
  User: 28633
  Date: 2020/8/27
  Time: 14:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>果瓣后台管理系统</title>
    <meta name="keywords"  content="设置关键词..." />
    <meta name="description" content="设置描述..." />
    <meta name="author" content="DeathGhost" />
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
    <link rel="icon" href="static/images/icon/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="static/css/styleAdmin.css" />
    <script src="static/js/jqueryAdmin.js"></script>
    <script src="static/js/plug-ins/customScrollbar.min.js"></script>
    <script src="static/js/plug-ins/echarts.min.js"></script>
    <script src="static/js/plug-ins/layerUi/layer.js"></script>
    <script src="static/js/plug-ins/pagination.js"></script>
    <script src="static/js/public.js"></script>
</head>
<body>

<div class="main-wrap">
    <div class="side-nav">
        <%@ include file="_linkPages/leftBar.jsp"%>
        <%@ include file="_linkPages/footer.jsp"%>
    </div>
    <div class="content-wrap">
        <%@ include file="_linkPages/rightBar.jsp"%>
        <main class="main-cont content mCustomScrollbar">
            <form action="${basePath}commoditylt" method="post" enctype="multipart/form-data">
                <div class="page-wrap">
                    <!--开始::内容-->
                    <!--开始::内容-->
                    <div class="form-group-col-2">
                        <div class="form-label">商品名字：</div>
                        <div class="form-cont">
                            <input type="hidden" name="method" value="updateCommoditys">
                            <input type="hidden" name="id" value="${commodity.id}">
                            <input type="text" placeholder="请输入商品名" class="form-control form-boxed"
                                   name="commName" value="${commodity.commName}">
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">商品价格：</div>
                        <div class="form-cont">
                            <input type="text" placeholder="请输入价格" class="form-control form-boxed" name="price"
                                   value="${commodity.price}"
                            >

                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">商品类型：</div>
                        <div class="form-cont">
                            <input type="text" placeholder="请输入类型" class="form-control form-boxed" name="type"
                                   value="${commodity.type}"
                            >
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label">商品信息：</div>
                        <div class="form-cont">
                            <input type="text" placeholder="请输入商品信息" class="form-control form-boxed" name="commInform"
                                   value="${commodity.commInform}"
                            >
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div><label>商品原图片：</label></div>
                        <div class="form-cont">
                            <img height="100px" src="${basePath}commoditylt?method=showPic&pic=${commodity.pic}"/>
                            <%--原图片传递过去--%>
                            <input name="pic" type="hidden" value="${commodity.pic}"/>
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div><label>新选择商品：</label></div>
                        <div class="form-cont">
                            <input type="file" name="newPic"/>
                        </div>
                    </div>

                    <div class="form-group-col-2">
                        <div class="form-label">商家名：</div>
                        <div class="form-cont">
                            <input type="text" placeholder="请输入商家名" class="form-control form-boxed" name="businessName"
                                   value="${commodity.businessName}"
                            >
                        </div>
                    </div>
                    <div class="form-group-col-2">
                        <div class="form-label"></div>
                        <div class="form-cont">
                            <input type="submit" class="btn btn-primary" value="提交表单" />
                        </div>
                    </div>
                    <!--开始::结束-->
                </div>
            </form>
        </main>
    </div>
</div>

<div class="mask"></div>
<div class="dialog">
    <div class="dialog-hd">
        <strong class="lt-title">标题</strong>
        <a class="rt-operate icon-remove JclosePanel" title="关闭"></a>
    </div>
    <div class="dialog-bd">
        <!--start::-->
        <p>这里是基础弹窗,可以定义文本信息，HTML信息这里是基础弹窗,可以定义文本信息，HTML信息。</p>
        <!--end::-->
    </div>
    <div class="dialog-ft">
        <button class="btn btn-info JyesBtn">确认</button>
        <button class="btn btn-secondary JnoBtn">关闭</button>
    </div>
</div>
</body>
</html>

